package com.ailesson.video.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ailesson.common.reply.PageResult;
import com.ailesson.video.entity.CommentEntity;
import com.ailesson.video.model.req.CommentQueryReq;
import com.ailesson.video.model.req.CommentReq;
import com.ailesson.video.model.reply.CommentReply;

/**
 * 评论
 *
 * @author mac
 * @email mac@gmail.com
 * @date 2024-10-02 10:30:59
 */
public interface CommentService extends IService<CommentEntity> {

    /**
     * 分页查询
     * @param params
     * @return
     */
    PageResult queryPage(CommentQueryReq params);

    /**
     * 查询信息
     * @param id
     * @return
     */
    CommentReply info(Long id);

    /**
     * 更新信息
     * @param comment
     */
    void update(CommentReq comment);

    /**
     * 新增
     * @param comment
     */
    Long add(CommentReq comment);
}

